﻿using Abp.Runtime.Validation;
using Camc.Quality.Dto;
using System;
using System.Collections.Generic;
using System.Text;

namespace Camc.Quality.Materials.Dto
{
   /// <summary>
   /// 工艺规程物料添加用
   /// </summary>
   public class GetMaterialsContetntsInProcedures: PagedAndSortedInputDto, IShouldNormalize
    {
        /// <summary>
        /// 型号ID 11/30
        /// </summary>
        public Guid ModuleId { get; set; }
        /// <summary>
        /// 发次ID 11/30
        /// </summary>
        public Guid SendTimeId { get; set; }
        /// <summary>
        /// 物料名称
        /// </summary>
        public string MaterialName { get; set; }
        /// <summary>
        /// 物料代号
        /// </summary>
        public string Code { get; set; }
        public void Normalize()
        {
            if (string.IsNullOrEmpty(Sorting))
            {
                Sorting = "CreationTime Desc";
            }
        }
    }
}
